package HomeWork.Work_02;

import java.util.Scanner;

/**
 * 声明三个任意整数x,y,z，请把这三个数由小到大输出。
 */
public class Number_02 {
    public static void main(String[] args){
        number();
    }
    public static void number(){
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入 x");
        int x = sc.nextInt();
        System.out.println("请输入 y");
        int y = sc.nextInt();
        System.out.println("请输入 z");
        int z = sc.nextInt();
        for(int i = 0; i <= 3; i++){
            int sum = x;
            if(sum > y){
                x = y;
                y = sum;
            }
            for(int j = 0; j <= i; j++){
                int temp = y;
                if(temp > z){
                    y = z;
                    z = temp;
                }
            }
        }
        System.out.println(x + "\t" + y + "\t" + z);
    }
}
